<?PHP	//header
include('config/config.php');
include('php/header.php');
require "php/functions.php";
?>        

<?PHP	//Connect to database
	$conn = mysql_connect($cfg["connection"]["host"], $cfg["connection"]["userName"], $cfg["connection"]["password"]) 
		or die ('Error Cannot Connect to MySQL');
	@mysql_select_db($cfg["connection"]["database"]) or die( "Unable to select database");
?>



<h2>Search by Category</h2>
         <div class="form">
         <form action="searchCategory.php" method="GET" id="SearchForm" class="niceform">
                <fieldset>
                    <dl>
                        <dt><label for="password">Category:</label></dt>
                        <dd><input type="text" name="cat" size="54" /></dd>
                    </dl>
                    <dl>
                        <dt><label></label></dt>
                        <dd>
                            <input type="checkbox" name="interests[]" id="" value="" checked /><label class="check_label">I agree to the <a href="#">terms &amp; conditions</a></label>
                        </dd>
                    </dl>
                    
                     <dl class="submit">
                    <input type="submit" name="submit" id="submit" value="Submit" />
                     </dl>  
                </fieldset>       
         </form>
         </div>  

<div class="pagination">
<?PHP	//footer
include('php/footer.php');
?>